<template>
  <amis :amisjson="amisjson"></amis>
</template>
<script>
import amis from "./AmisRenderer.vue"

export default {
  name: 'HelloWorld',
  components: {
    amis
  },
  data: function() {
    return {
      amisjson: {
        type: "page",
        title: "表单页面",
        body: {
            type: "form",
            mode: "horizontal",
            api: "/saveForm",
            body: [
            {
                label: "Name",
                type: "input-text",
                name: "name",
            },
            {
                label: "Email",
                type: "input-email",
                name: "email",
            },
            ],
        },
      }
    }
  },
}
</script>